<template>
   <tbody>
    <tr>
        <td>
            <button class="btn" @click="getVl">
                {{ trObj.id }}
            </button>
        </td>
        <td>
            <button class="btn" @click="getVl">
                {{ trObj.userName }}
            </button>
        </td>
        <td>
            <button class="btn" @click="getVl">
                {{ trObj.email }}
            </button>
        </td>
    </tr>
   </tbody>
</template>
<script>
   export default {
     name: '',
     props:["trObj"],
     data: function(){
       return {
       }
     },
     methods:{
        getVl(){
            var text = event.target.textContent;
            console.info(text);
            this.$bus.emit("getTableVl",text);
        }
     }
   }
</script>
<style>
  html,
  body, 
  #app{
    height: 100%;
  }
</style>
<style scoped>
   .container {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 100%;
      background-color: aliceblue;
   }
   .tr{
      width: 200px;
      flex-basis: 50px;
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      background-color: beige;
      align-items: center;
    }
   .second{
      background-color: aqua;
   }
</style>